<!-- category list -->
<div class="ht-block" id="cat-list">
    <div class="title">
        <h3><?php echo $this->trans('categories list') ?></h3>
    </div>
    <div class="content">
    <?php
    foreach ($this->categories as $category) {
        echo '<dl>';
        echo '<dt>' . $this->linkTo($category['title'],'@category?ident=' . $category['id']) . '</dt><dd>';
        foreach ($category['subcategory'] as $subcategory) {
            echo $this->linkTo($subcategory['title'],'@category?ident=' . $subcategory['id']);
        }
        echo $this->linkTo('...','category/index?id=' . $category['id']) . '</dd>';
        echo '</dl>';
    }
    ?>
    </div>
</div>
<!-- category list end -->